package routers

import (
	"durg/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user", &controllers.UserController{}, "post:User")
	beego.Router("/login", &controllers.UserController{}, "post:Login")

	beego.Router("/add", &controllers.MedicalController{}, "post:Add")
	beego.Router("/up", &controllers.MedicalController{}, "post:Up")

	beego.Router("/list", &controllers.MedicalController{}, "get:List")
	beego.Router("/info", &controllers.MedicalController{}, "get:Info")
	beego.Router("/rank", &controllers.MedicalController{}, "get:Rank")
}
